<?
include("conf/fraktionen.conf.php");
if($_GET[showround]>0){
    $serverId=intval($_GET[showround]);
    include("sc/verloren.sc.php");	
}else{
  ?>
  <h1><?=$lang[hof_title]?></h1>
  <h4><?=$lang[hof_description]?></h4>
  <table class="forum" width="100%">
    <tr class="forum_kat">
      <th><?=$lang[hof_round]?></th>
      <th><?=$lang[hof_started]?></th>
      <th><?=$lang[hof_ended]?></th>
      <th><?=$lang[hof_players]?></th>
      <th><?=$lang[hof_superior]?></th>
    </tr>
    <?
    $abfrage="SELECT * FROM final_history ORDER BY ID DESC;";
    $result=$db->query($abfrage);
    while($runde=$db->fetch_assoc($result)){
        echo "
	    <tr class=\"beitrag\" onclick=\"location.href='index.php?page=hof&showround=$runde[Id]';\">
  	      <td>$runde[Name]</td>
		  <td>".date("d.m.Y", $runde[Start])."</td>
		  <td>".date("d.m.Y", $runde[Ende])."</td>
		  <td>$runde[Spieler]</td>
		  <td>".$config_fraktion[$runde[Sieger]][name]."</td>
	    </tr>";
    }
    ?>  
  </table>
  <?
}